]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
breakManager: Add l10n comments
authorPhilipp Kiemle <46353-daPhipz@users.noreply.gitlab.gnome.org>
Wed, 21 May 2025 11:19:36 +0000 (13:19 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 22 May 2025 12:28:12 +0000 (14:28 +0200)
Small strings like this often have different possible translations,
depending on their meaning. A comment is needed here to make sure
they are translated correctly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3716>

js/misc/breakManager.js

index 65b74093031ac9ace7e9527bcf5dc6480135c2ca..67babda06f2ee80347c427e9f2447cfd520af343 100644 (file)
@@ -1262,8 +1262,8 @@ class BreakNotificationSource extends GObject.Object {
             } else if (this._previousState === BreakState.IN_BREAK) {
                 const durationSecs = this._manager.getDurationForBreakType(nextBreakType);
                 const [countdownText, countdownValue, updateTimeoutSeconds] = this._formatTimeSpan(durationSecs - breakDueAgo);
+                /* Translators: %s will be replaced with a string that describes a time interval, such as “2 minutes”, “40 seconds” or “1 hour” */
                 const bodyText = Gettext.ngettext(
-                    /* %s will be replaced with a string that describes a time interval, such as “2 minutes”, “40 seconds” or “1 hour” */
                     'There is %s remaining in your break',
                     'There are %s remaining in your break',
                     countdownValue
@@ -1347,6 +1347,7 @@ const BreakNotification = GObject.registerClass({
             return;
 
         if (allowDelay) {
+            /* Translators: As in "Delay the break" */
             this._delayAction = this.addAction(_('Delay'), this._onDelayAction.bind(this));
         } else {
             this.removeAction(this._delayAction);
@@ -1368,6 +1369,7 @@ const BreakNotification = GObject.registerClass({
             return;
 
         if (allowSkip) {
+            /* Translators: As in "Skip the break" */
             this._skipAction = this.addAction(_('Skip'), this._onSkipAction.bind(this));
         } else {
             this.removeAction(this._skipAction);
@@ -1389,6 +1391,7 @@ const BreakNotification = GObject.registerClass({
             return;
 
         if (allowTake) {
+            /* Translators: As in "Take the break" */
             this._takeAction = this.addAction(_('Take'), this._onTakeAction.bind(this));
         } else {
             this.removeAction(this._takeAction);